<?php

	class Planeta {
		
		private $setor;
		private $quadrante;
		private $slot;
		private $idBot;
		private $usuario;
		
		public function __construct($setor, $quadrante, $slot, $idBot) {
			$this->setSetor($setor);
			$this->setQuadrante($quadrante);
			$this->setSlot($slot);
			$this->setIdBot($idBot);
		}
		
		public function getSetor() {
			return $this->setor;
		}
		
		public function setSetor($temp) {
			$this->setor = $temp;
		}
		
		public function getQuadrante() {
			return $this->quadrante;
		}
		
		public function setQuadrante($temp) {
			$this->quadrante = $temp;
		}
		
		public function getSlot() {
			return $this->slot;
		}
		
		public function setSlot($temp) {
			$this->slot = $temp;
		}
		
		public function getIdBot() {
			return $this->idBot;
		}
		
		public function setIdBot($temp) {
			$this->idBot = $temp;
		}
		
		public function getUsuario() {
			return $this->usuario;
		}
		
		public function setUsuario($temp) {
			$this->usuario = $temp;
		}
		
		public function toJSONObject() { 
			return array(
				"setor" => $this->setor,
				"quadrante" => $this->quadrante,
				"slot" => $this->slot,
				"idBot" => $this->idBot,
				"usuario" => $this->usuario
			);
		}
	}
?>